/*
 * Copyright @ 苏州瑞云信息技术有限公司 All rights reserved.
 */
package cn.com.recloud.bbs.service;

import cn.com.recloud.bbs.entity.bbs_article;
import cn.com.recloud.bbs.vo.AppArticStatisticsVO;
import cn.com.recloud.bbs.vo.AppListArticVO;
import cn.com.recloud.one.spring.service.BaseService;

import java.util.List;

/**
 * @author keblea xie
 * @since 2020-06-10
 */
public interface ArticleService extends BaseService<bbs_article> {
    String saveArticle(bbs_article bbs_article,String status);
    String updateArticle(bbs_article bbs_article,String status,String flag);
    boolean publishOrCancel(List<String> idList,String type);

    /**
     * 根据文章分类的id查询文章列表
     * @param typeId
     * @param pageIndex
     * @param pageSize
     * @return
     */
    List<AppListArticVO> listArticle(String typeId, Integer pageIndex, Integer pageSize);

    /**
     * 根据文章id查询，评论，查看，点赞，和喜欢的统计
     * @param id
     * @return
     */
    AppArticStatisticsVO getAppArticleStatistics(String id);

    boolean deleteAvater(String id);
}
